import store.Service.BuyCar;
import store.Service.SelfInfomation;
import store.Service.Store;

import java.util.Scanner;

public class Test2 {
    public static void Indexstore() {
        while (true) {
            System.out.println("******************电器商城******************");
            System.out.println("                1.商品购买");
            System.out.println("                2.我的购物车");
            System.out.println("                3.个人信息");
            System.out.println("                4.注销");
            System.out.println("******************电器商城******************");
            System.out.println("请选择菜单：");

            int choice = new Scanner(System.in).nextInt();

            switch (choice) {
                case 1:
                    Store.buyGoods();
                    break;
                case 2:
                    BuyCar.buyCar();
                    break;
                case 3:
                    SelfInfomation.Infomation();
                    break;
                case 4:
                    SelfInfomation.CancelLogin();
                    break;
            }
        }
    }
}
